package cn.shyouchi.wuguanjia.android.ui.event.check;

import com.chad.library.adapter.base.entity.MultiItemEntity;

/**
 * Created by Eenie on 2016/11/3 at 14:38
 * Email: 472279981@qq.com
 * Des:
 */

public class EventCheckModel implements IBaseModel, MultiItemEntity {

    public static final int EVENT_CHECK_TYPE_POINT = 0;
    public static final int EVENT_CHECK_TYPE_RANK = 1;
    public static final int EVENT_CHECK_TYPE_COUNT = 2;
    public static final int EVENT_CHECK_TYPE_FINGER = 3;
    public static final int EVENT_CHECK_TYPE_SIGN = 4;
    public static final int EVENT_CHECK_TYPE_CITY = 5;


    private int type;
    private String name;
    private String hint;
    private int inputType;

    private String value;


    public static final int FILL_TYPE_SEL = 0;
    public static final int FILL_TYPE_RANGE = 1;


    public EventCheckModel(int type, String name, String hint, int inputType) {

        this.type = type;
        this.name = name;
        this.hint = hint;
        this.inputType = inputType;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    @Override
    public String getValue() {
        return value;
    }

    @Override
    public String getHint() {
        return hint;
    }

    @Override
    public int getInputType() {
        return inputType;
    }

    @Override
    public boolean isMultiLines() {
        return false;
    }

    @Override
    public void setValue(String value) {
        this.value = value;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getHintValue() {
        switch (type) {
            case EVENT_CHECK_TYPE_RANK:
                return value + "米";
            case EVENT_CHECK_TYPE_COUNT:
            case EVENT_CHECK_TYPE_FINGER:
            case EVENT_CHECK_TYPE_SIGN:
                return value + "天";
            default:
                return value;
        }

    }

    @Override
    public int getItemType() {
        return 0;
    }
}
